import data.creature as data
from model.creature import Creature


def get_all() -> list[Creature]:
    return data.get_all()


def get_one(id: str) -> Creature | None:
    return data.get_one(id)


def create(creature: Creature) -> Creature:
    """Add new creature"""
    return data.create(creature)


def modify(name: str, creature: Creature) -> Creature:
    """Partially modify a creature"""
    return data.modify(name, creature)


def replace(id, creature: Creature) -> Creature:
    """Completely replace a creature"""
    return data.replace(creature)


def delete(name: str) -> None:
    """Delete a creature; return None if it existed"""
    return data.delete(name)
